home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- unLoad("first", "last")
- unLoad(cast 129, 165)
- unLoad(cast "h1", "names")
- unLoad(cast "pad_text")
- end
-
- on exitFrame
- global total_pages, current_page, new_page, last_page, loaded_page, active, inactive, A_text_cast, B_text_cast, script_page_cast, scribble, scribble_a, scribble_b, scribble_status, scribble_status_a, scribble_status_b, scribble_now, scribble_type, num_scribbles, pad_total_pages, pad_current_page, pad_new_page, pad_last_page, pad_loaded_page, pad_active, pad_inactive, J_text_cast, K_text_cast, pad_page_cast, pad, pages_read, pad_section_cast, menu_on, p_arrows_close, p_arrows_open, p_arrow_down, p_arrow_left, p_arrow_right, p_arrow_turn, p_hand_closed, p_hand_open, p_hand_up, p_menu, p_mouth_open, p_mouth_closed, p_scribble, arrow_up, kernel, kernel_limit, popped, kernel_on, k_offset, pop_eaten, kernels_left, pages_with_kernels, kernel_a, kernel_b, kernel_0, kernel_H, kernel_V, kernel_offset
- set the trace to 0
- set tapebutton to the number of cast "tapebutton"
- set tapeoff to the number of cast "tapeoff.256"
- set tapepush to the number of cast "tapepush.256"
- set button to 0
- set the picture of cast tapebutton to the picture of cast tapeoff
- set cookie to the number of cast "cookie"
- set cookie_status to 1
- set last_cookie_frame to 5
- set the picture of cast cookie to the picture of cast (cookie + cookie_status)
- set current_page to 0
- set last_page to 0
- set loaded_page to -1
- set new_page to 0
- set script_page_cast to the number of cast "script page"
- put " " into field script_page_cast
- set active to "A"
- set inactive to "B"
- set A_text_cast to the number of cast "A text"
- set B_text_cast to the number of cast "B text"
- set num_scribbles to 0
- set scribble_status to []
- set scribble to the number of cast "s0"
- set scribble_a to the number of cast "sa"
- set scribble_b to the number of cast "sb"
- repeat with i = 1 to total_pages
- append(scribble_status, 0)
- end repeat
- set the picture of cast scribble_a to the picture of cast (scribble + 0)
- set the picture of cast scribble_b to the picture of cast (scribble + 0)
- set scribble_status_a to 0
- set scribble_status_b to 0
- set scribble_now to 0
- set scribble_type to 0
- set pad_total_pages to count(pad)
- set pad_current_page to 0
- set pad_last_page to 0
- set pad_loaded_page to -1
- set pad_new_page to -1
- set pad_page_cast to the number of cast "pad page"
- set pad_section_cast to the number of cast "section"
- put " " into field pad_page_cast
- put " " into field pad_section_cast
- set pad_active to "J"
- set pad_inactive to "K"
- set J_text_cast to the number of cast "J text"
- set K_text_cast to the number of cast "K text"
- set pages_read to 0
- set menu_on to 0
- set p_arrows_close to the number of cast "p_arrows_close"
- set p_arrows_open to the number of cast "p_arrows_open"
- set p_arrow_down to the number of cast "p_arrow_down"
- set p_arrow_left to the number of cast "p_arrow_left"
- set p_arrow_right to the number of cast "p_arrow_right"
- set p_arrow_turn to the number of cast "p_arrow_turn"
- set p_hand_closed to the number of cast "p_hand_closed"
- set p_hand_open to the number of cast "p_hand_open"
- set p_hand_up to the number of cast "p_hand_up"
- set p_menu to the number of cast "p_menu"
- set p_mouth_open to the number of cast "p_mouth_open"
- set p_mouth_closed to the number of cast "p_mouth_closed"
- set p_scribble to the number of cast "p_scribble"
- set p_arrow_up to the number of cast "p_arrow_up"
- set pop_eaten to 0
- set k_offset to 0
- set kernel_on to 0
- set kernel to 41
- set kernel_limit to 42
- set kernel_0 to the number of cast "kernel_0"
- set kernel_a to the number of cast "kernel_a"
- set kernel_b to the number of cast "kernel_b"
- set the picture of cast kernel_a to the picture of cast kernel_0
- set the picture of cast kernel_b to the picture of cast kernel_0
- set pages_with_kernels to []
- set kernel_H to []
- set kernel_V to []
- set kernel_offset to []
- set popped to 0
- set the randomSeed to the timer
- repeat with i = 1 to total_pages
- append(pages_with_kernels, 0)
- append(kernel_H, 0)
- append(kernel_V, 0)
- append(kernel_offset, 0)
- end repeat
- set kernels_left to 20
- repeat while count([2, 5, 8, 13, 14, 21, 30, 48, 54, 67, 80, 93, 106, 132, 141, 158, 160, 171, 180, 186]) <= 1
- set i to getAt(ERROR, ERROR)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- repeat while ERROR <= (ERROR + 1)
- set i to getAt(ERROR, ERROR)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- repeat while ERROR <= (ERROR + 1)
- set i to getAt(ERROR, ERROR)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- repeat while ERROR <= (ERROR + 1)
- set i to getAt(ERROR, ERROR)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- set i to getAt(ERROR, ERROR + 1)
- setAt(pages_with_kernels, i, 2)
- setAt(kernel_offset, i, (random(3) - 1) * 3)
- setAt(kernel_H, i, random(290) + 220)
- setAt(kernel_V, i, random(300) + 115)
- -- ERROR: Expected eq or nteq!
- end repeat
- end repeat
- end repeat
- end repeat
- end
-